package cn.demon.user.mapper;

import cn.demon.user.domain.User;
import cn.demon.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author demon
 * @since 2022-06-01
 */
public interface UserMapper extends BaseMapper<User> {


    /**
     * 通过手机号发送验证码，判断手机号是否注册过
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    User loadByEmail(String email);

    User LoadByLogininfoId(Long id);
}
